import { gql } from 'react-apollo';

export default gql`
  subscription {
    tweetAdded {
      _id,
      text,
      createdAt,
      favouriteCount,
      isFavourite,
      user {
        username,
        firstName,
        lastName,
        avatar
      }
    }
  }
`;
